#ifndef __GROUP_H__
#define __GROUP_H__

#include "groupuser.hpp"
#include <vector>
#include <string>

class Group
{
public:
    Group(int id = -1, const std::string &name = "", const std::string &desc = "") {
        id_ = id;
        name_ = name;
        desc_ = desc;
    }
    void setId(int id) { id_ = id; }
    void setName(const std::string &name) {  name_ = name; }
    void setDesc(const std::string &desc) { desc_ = desc; }

    int getId() const  { return id_; }
    const std::string &getName() const { return name_; }
    const std::string &getDesc() const { return desc_; }
    std::vector<GroupUser> &getUsers() { return userList_; }
private:
    int id_;
    std::string name_;
    std::string desc_;
    std::vector<GroupUser> userList_;
};


#endif